// Copyright 2019 The rhyme_lph Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// P [author] rhyme_lph
// n [email]  rhymelph@gmail.com
// h [github] https://github.com/rhymelph

import 'package:base_plugin/base_plugin.dart';
import 'package:finance_app/src/widgets/common/pdf_watch_view.dart';
import 'package:flutter/material.dart';
import 'package:finance_app/src/page/setting/subscription/sub_invoice_page.dart';
import 'package:share/share.dart';

class SubInvoiceProvider extends BaseProvider {
  List<String> menuList = ['Share'];
  GlobalKey<PdfWatchViewState> pdfKey = GlobalKey();

  int id;

  @override
  void initState() {
    super.initState();
  }

  @override
  Future get dataFuture => null;

  void onSelectMenu(String value) {
    switch (value) {
      case 'Share':
        pdfKey.currentState.onShare();
        break;
    }
  }

  void onImportToBill() {}
}
